<ul id="nav">

<li><a href = "home.php">Home</a></li><li><a href = "sensor_upload.php">Upload</a></li><li><a href = "sensor.php">Create Sensor</a></li><li><a href = "sensor_management.php">Management</a></li><li><a href = "account.php">Modify Account</a></li><li><a href = "create_admin.php">Create Admin</a></li><li><a href = "status.php">Status</a></li><li><a href = "logout.php">Logout</a></li><li>

<?php
include "validate.php";

$user = $_SESSION["username"];

$pass = $_SESSION["password"];

$user = mysql_real_escape_string($user);
$pass = mysql_real_escape_string($pass);

$query = "	SELECT full_name as NAME
			FROM login
			WHERE user_name like '%" . $user . "%'
				AND account_pass like '%" . sha1($pass) . "%';";

$result = mysql_query($query);

if ($row = mysql_fetch_array($result))
{
	echo htmlspecialchars($row['NAME']);
}
?>
</li></ul>
